package com.acsior.hibernate.vo;

// default package

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.acsior.dac.impl.hibernate.vo.GeneratorKey;
import com.acsior.dac.impl.hibernate.vo.HibernatePersistantIntegerIdVO;

/**
 * SecTimeAccess entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sec_timeAccess")
@GeneratorKey(tableName = "sec_timeAccess")
public class SecTimeAccessVO extends HibernatePersistantIntegerIdVO {

	private static final long serialVersionUID = -1273087196986612777L;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "employee_id", nullable = false)
	private EmployeeVO employee;

	@Column(name = "start_time", nullable = false, length = 23)
	private Date startTime;

	@Column(name = "end_time", nullable = false, length = 23)
	private Date endTime;

	@Column(name = "period", nullable = false)
	private Integer period;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "type_period_id", nullable = false)
	private NomSecurityTimePeriodTypeVO nomSecurityTimePeriodType;

	// Constructors

	/** default constructor */
	public SecTimeAccessVO() {
		// и те така
	}

	/**
	 * @return стойността на employee
	 */
	public EmployeeVO getEmployee() {
		return this.employee;
	}

	/**
	 * @param employee
	 *            се залага в employee
	 */
	public void setEmployee(EmployeeVO employee) {
		this.employee = employee;
	}

	/**
	 * @return стойността на startTime
	 */
	public Date getStartTime() {
		return this.startTime;
	}

	/**
	 * @param startTime
	 *            се залага в startTime
	 */
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	/**
	 * @return стойността на endTime
	 */
	public Date getEndTime() {
		return this.endTime;
	}

	/**
	 * @param endTime
	 *            се залага в endTime
	 */
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	
	/**
	 * @return стойността на period
	 */
	public Integer getPeriod() {
		return this.period;
	}

	
	/**
	 * @param period се залага в period
	 */
	public void setPeriod(Integer period) {
		this.period = period;
	}

	
	/**
	 * @return стойността на nomSecurityTimePeriodType
	 */
	public NomSecurityTimePeriodTypeVO getNomSecurityTimePeriodType() {
		return this.nomSecurityTimePeriodType;
	}

	
	/**
	 * @param nomSecurityTimePeriodType се залага в nomSecurityTimePeriodType
	 */
	public void setNomSecurityTimePeriodType(NomSecurityTimePeriodTypeVO nomSecurityTimePeriodType) {
		this.nomSecurityTimePeriodType = nomSecurityTimePeriodType;
	}

}